<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>卡官网官网_年轻人的信用钱包！</title><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"><meta name="description" content=" 卡官网是一款基于移动端的信用借款APP。我们主要解决大学生和年轻白领在日常生活中的借款需求，用互联网大数据方式，提供最快最便捷的金融服务！ "><meta name="Keywords" content=" 99分期，分期，大学生分期，年轻人分期，分期购物，手机分期，电脑分期 "><link rel="stylesheet" type="text/css" href="/Public/home/css/feiqi-ee5401a8e6.css"><link rel="stylesheet" type="text/css" href="./Public/home/css/mui.min.css"><link rel="stylesheet" type="text/css" href="/Public/home/css/newpay-bb7fcb5546.css"><link rel="stylesheet" type="text/css" href="./Public/home/css/pay-2b02ca7987.css"><style>.close_span{
    float: right;
    font-size: 35px;
    top: 10px;
    right: 10%;
    position: absolute;
    color: red;
}
.item_div{
	position: relative;
}
.tiptitle{
    line-height: 1.5em;
    font-size: 15px;
    width: 85%;
    left: 7.5%;
    text-align: center;
    position: relative;
    height: 60px;
    color: #8f8f94;
    margin-top: 12px;
}
</style></head><body class="whitebg"><!-- header --><header class="header"><a class="back" id='back' href="/index.php?m=Info&a=index"></a>		补充资料
	</header><div class="tiptitle">汽车行驶证， 房产证，工作证明、收入证明、社保、公积金</div><section><div class="sfzwrap prel" style="text-align: center;height: auto;" id="infoitems"></div><div class="mt10 pa10 btnbg" style="margin-bottom:70px"><form method="post" id="info_form"></form><div style="display: none;"><input type="file" id="Upload_img_file" onchange="addItem();" /></div><a href="javascript:$('#Upload_img_file').click();" class="logBtn hgray" id='logBtn' type="submit">添加资料</a><hr /><a class="logBtn hgray" onclick="Saveinfo();">提交</a></div></section><!-- pop end--></div></div><div id="tips" class="ban" style="display:none"></div><script src="/Public/home/js/jquery-1-fe84a54bc0.11.1.min.js"></script><script src="/Public/home/js/fontsizeset.js"></script><script>var isload = false;
var item = 1;
function showtips(msg){
	$("#tips").html(msg);
	$("#tips").show();
	setTimeout(function(){
		$("#tips").html('');
		$("#tips").hide();
	},3000);
}
function delitem(itemid){
	$("#item_"+itemid).remove();
	$("#info_val_"+itemid).remove();
}
function addItem(){
	if(isload == true){
		showtips("正在上传其他文件...");
	}else{
		isload = true;
		var tmp_path = $("#Upload_img_file").val();
		if(tmp_path != '' && tmp_path != null){
		    var pic = $('#Upload_img_file')[0].files[0];
            var fd = new FormData();
            fd.append('imgFile', pic);
            $.ajax({
                url:"/Public/main/js/kindeditor/php/upload_json.php",
                type:"post",
                dataType:'json',
                data: fd,
                cache: false,
                contentType: false,
                processData: false,
                success:function(data){
                    if(data && data.error == '0'){
                    	var imgurl = data.url;
                    	var html = '<div id="item_'+item+'" class="item_div"><img src="'+imgurl+'" width="85%" alt=""><a href="javascript:delitem('+item+');"><span class="close_span"><img src="/Public/home/imgs/close_info.png" width="40px" /></span></a></div>';
                        $("#infoitems").append(html);
                        var html = '<input type="hidden" name="otherinfo[]" value="'+imgurl+'" id="info_val_'+item+'" />';
                        $("#info_form").append(html);
                        item ++;
                        showtips("上传成功!");
                    }else{
						showtips("上传出错了...");
                    }
                },
                error:function (){
                    showtips("上传出错了...");
                }
            });
		}
		isload = false;
	}
}

function Saveinfo(){
	jQuery.ajax({
		url: "/index.php?m=Info&a=otherinfo",
		data: $('#info_form').serialize(),
		type: "POST",
		success: function(){
			showtips("保存成功!");
			setTimeout(function(){
				window.location.href = window.location.href;
			},3000);
		}
	});
}
</script><div style="display: none;">adasdsad</div></body></html>